package jdbc.jdbc_Text.JDBC_pojo_Demo3;

/**
 * 品牌名称
 *
 * 在实体类中注意点:基本数据类型改用为对应的包装类的类型,因为有默认值不会对业务
 */
public class Brand {
    //id主键
    private Integer id;
    //品牌名称
    private String brandName;
    //企业名称
    private String companyName;
    //排序字段
    private Integer ordered;
    //描述信息
    private String description;
    //状态 0:禁用 1:启用
    private Integer status;

    public Brand() {
    }

    public Brand(Integer id, String brandName, String companyName, Integer ordered, String description, Integer status) {
        this.id = id;
        this.brandName = brandName;
        this.companyName = companyName;
        this.ordered = ordered;
        this.description = description;
        this.status = status;
    }

    /**
     * 获取id
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置id
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取品牌名称
     * @return brandName
     */
    public String getBrandName() {
        return brandName;
    }

    /**
     * 设置品牌名称
     * @param brandName
     */
    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    /**
     * 获取公司名称
     * @return companyName
     */
    public String getCompanyName() {
        return companyName;
    }

    /**
     * 设置公司名称
     * @param companyName
     */
    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    /**
     * 获取排序字段
     * @return ordered
     */
    public Integer getOrdered() {
        return ordered;
    }

    /**
     * 设置排序字段
     * @param ordered
     */
    public void setOrdered(Integer ordered) {
        this.ordered = ordered;
    }

    /**
     * 获取描述信息
     * @return description
     */
    public String getDescription() {
        return description;
    }

    /**
     * 设置描述信息
     * @param description
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * 获取状态
     * @return status
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * 设置状态
     * @param status
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    public String toString() {
        return "Brand{id = " + id + ", brandName = "
                + brandName + ", companyName = " + companyName +
                ", ordered = " + ordered + ", description = " +
                description + ", status = " + status + "}";
    }

}
